package com.woniu.orderservice.controller;

import com.woniu.orderservice.entity.Applications;
import com.woniu.orderservice.service.ApplicationsService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("applications")
public class ApplicationsController {
    @Resource
    private ApplicationsService applicationsService;

    @GetMapping("selectOne")
    public Applications selectOne(Integer id) {
        return applicationsService.queryById(id);
    }

}